{# src/Pyaf/GymBundle/Resources/views/AdminRutina/edit.html.twig #}
{% block javascriptsHeader %}
    <!-- multi select plugin -->
    <link rel="stylesheet" href="{{ asset('bootstrap/css/multi-select.css') }}">
    <!-- jQuery -->
    <script src="{{ asset('bootstrap/js/jquery.min.js') }}"></script>    
    <!-- Bootstrap -->
    <script src="{{ asset('bootstrap/js/bootstrap.min.js') }}"></script>    
    <!-- multi select plugin -->
    <script src="{{ asset('bootstrap/js/jquery.multi-select.min.js') }}"></script>    
    <!-- Theme framework -->
    <script src="{{ asset('bootstrap/js/eakroko.min.js') }}"></script>    

    <script type="text/javascript">
        $(document).ready(function(){
        });
    </script>
{% endblock %}
{% block body %}

    <form action="{{ path('admin_paqueterutina_edit', {'id': paqueteRutina.id}) }}" method="post" class='form-horizontal form-bordered form-validate' {{ form_enctype(formulario) }}>                        
        {{ form_errors(formulario) }}
        <div class="control-group">
            <label for="textfield" class="control-label" style="text-align: center;">Nombre</label>
            <div class="controls">
                {{ form_widget(formulario.nombre) }} 
                {{ form_errors(formulario.nombre) }} 
            </div>
        </div>
        <div class="control-group">
            <label for="policy" class="control-label" style="text-align: center;">Descripción</label>
            <div class="controls">
                {{ form_widget(formulario.descripcion) }}    
                {{ form_errors(formulario.descripcion) }} 
            </div>
        </div>  
        <div class="control-group">
            <label for="textfield" class="control-label">Selector de rutinas</label>
            <div class="controls">
                {{ form_widget(formulario.rutinas, 
                    { 'attr': {'class': 'multiselect', 'multiple': 'multiple'} }) }}    
                {{ form_errors(formulario.rutinas) }}
            </div>
        </div>
        <div class="control-group">
            <label for="policy" class="control-label" style="text-align: center;">Habilitación</label>
            <div class="controls">
                <label class="checkbox">
                    {{ form_widget(formulario.habilitado) }}    
                    {{ form_errors(formulario.habilitado) }} 
                </label>    
            </div>
        </div>
        {{ form_rest(formulario) }}
        <div class="form-actions">
            <input type="submit" class="button button-basic-blue" value="Aceptar">
            <a href="{{ path('admin_paqueterutina_list') }}" class="button button-basic">Cancelar</a>
        </div>
    </form>
{% endblock %}
